# coding: utf8
#########################################################################
# multilingual Default Setting
#########################################################################
# Location                    : models/1_init_session_vars_uc_multilingual.py
# Corresponding controller    : controllers/uc_multilingual.py
#
# Organization                : TBD
# Author                      : Christopher Steel
# Copyright                   : 2010 Christopher Steel
# Contributors                : NA
# Last Changes                : 2010-02-25
# License                     : MIT
# Description :
#
# 1_init_session_vars_uc_multilingual.py sets two session variables, session._uc_multilingual_on
# and session._uc_multilingual_enabled.
#
# session._uc_multilingual_on includes the code for changing the value of
# session._uc_multilingual_on via the controller, multilingual.py.
#
# session._uc_multilingual_enabled is set to 'True' by default at this time
# and is provided as is. As such setting session._uc_multilingual_enabled
# to 'False' has no effect at this time.
#
######################
# session._uc_multilingual_on
######################
#
#
if not session._uc_multilingual_on: session._uc_multilingual_on = 'True'
# If I set request.vars._multilingual via the controller to 'True' or 'False'
# my new setting gets save to session._multilingual here.
if request.vars._uc_multilingual_on:
    session._uc_multilingual_on = request.vars._uc_multilingual_on
###########################
# session._uc_multilingual_enabled
###########################
#
#
if not session._uc_multilingual_enabled: session._uc_multilingual_enabled = 'True'
